<?php

class Menadzer extends BaseMenadzer
{
    public function __toString()
    {
        return $this->getProfil()->getPrezime().' '.$this->getProfil()->getIme();
    }

    public function getTipString()
    {
        return array_search($this->getTip(),MenadzerPeer::$tip);
    }

    public function getStatusString()
    {
        return array_search($this->getStatus(),MenadzerPeer::$status);
    }

    public function getString()
    {
        return (string)$this;
    }

    public function getPrezime()
    {
        return $this->getProfil()->getPrezime();
    }

    public function getIme()
    {
        return $this->getProfil()->getIme();
    }

    public function getUsername()
    {
        return $this->getProfil()->getUsername();
    }

    public function getPassword()
    {
        return $this->getProfil()->getPassword();
    }

    public function getPlainPassword()
    {
        return $this->getProfil()->getPlainPassword();
    }

    public function getTelefon()
    {
        return $this->getProfil()->getTelefon();
    }

    public function getMobilni()
    {
        return $this->getProfil()->getMobilni();
    }

    public function getEmail()
    {
        return $this->getProfil()->getEmail();
    }

    public function getLastActiv()
    {
        return date('d.n.Y. / G-i', $this->getProfil()->getLastActiv());
    }

    public function delete(PropelPDO $con = null)
    {
        ProfilPeer::retrieveByPK($this->getId())->delete();
    }

}
